import { configureStore } from '@reduxjs/toolkit';
import user from './modules/user';

const store = configureStore({
  reducer: {
    user
  }
})

export default store;

// 导出类型
export type RootState = ReturnType<typeof store.getState>
export type AppDispatch = typeof store.dispatch